import request from '@/utils/request'

// 查询列表
export function listRegister(query) {
  return request({
    url: '/gas/register/list',
    method: 'get',
    params: query
  })
}

// 查询详细
export function getRegister(registerId) {
  return request({
    url: '/gas/register/' + registerId,
    method: 'get'
  })
}

// 新增
export function addRegister(data) {
  return request({
    url: '/gas/register',
    method: 'post',
    data: data
  })
}

// 修改
export function updateRegister(data) {
  return request({
    url: '/gas/register',
    method: 'put',
    data: data
  })
}

// 删除
export function delRegister(registerId) {
  return request({
    url: '/gas/register/' + registerId,
    method: 'delete'
  })
}

// 查询近5天预约车辆信息
export function getRecentCarInfoList(data) {
  return request({
    url: '/gas/register/recentList',
    method: 'get',
    params: data,
    data: data
  })
}
